package com.gym.service.impl;

import com.gym.dao.CourseDao;
import com.gym.service.CourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CourseServiceImpl implements CourseService {

    @Resource
    private CourseDao courseDao;

    @Override
    public boolean delCourseByCoachId(int trainId) {
        System.out.println(trainId);
        return courseDao.delCourseByCoachId(trainId)>0;
    }


}
